home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
5_5.lha
/
5_5
/
intalloc.h
< prev
next >
Wrap
Text File
|
1993-08-08
|
871b
|
42 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ intalloc.h
/ allocate and deallocate a number
/ from an integer set
ifndef INTALLOC_H
define INTALLOC_H
ifdef NONLOCAL /* DELETE */
include <intset.h>
else /* DELETE */
include "intset.h" /* DELETE */
endif /* DELETE */
lass intalloc
intset *a;
ublic:
intalloc(int m, int n) { a = new intset(m, n); }
~intalloc() { delete a; }
int get();
void free(int i)
{
a->remove(i);
}
;
endif /* INTALLOC_H */